home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 36 / IOPROG_36.ISO / soft / SQLing.exe / Disk1 / data1.cab / Program_Executable_Files / Tips & Tricks.txt < prev   
Encoding:
Text File  |  2000-02-01  |  8.6 KB  |  223 lines

  1. More Progress With SQLing
  2.  
  3. --- Contents -----------
  4. 1. Shortcuts
  5. 1.1. Desktop
  6. 1.2. XLS Like Tables
  7. 1.3. Query/Procedure editor
  8. 1.4. Reports
  9. 2. Popup Menus
  10. 2.1 Tree Browser 
  11. 2.2 List Of Usefull Functions
  12. 3. Usefull functionality (easy to miss..:) )
  13. 4. Command Line Options
  14. 4.1. Automatic Connection
  15. 4.2. Load Functions
  16. 4.3 Compare
  17. 4.4. Transfer
  18. 5. SQLing Server Options
  19. 6. Troubleshooting
  20. --- end of contents
  21.  
  22. 1. Shortcuts
  23. 1.1. Desktop
  24. 1.1.1 Application wide (on all places where possible)
  25. F1 - Help
  26. F5 - Refresh 
  27.  
  28. 1.1.2 Application desktop
  29. Alt F1/F2 - skip between browsing tree/desktop
  30. Shift Alt F1/F2 - skip from & hide/skip into & unhide tree browser
  31.  
  32. 1.1.3 Browsing Tree
  33. Tab - skip from tree -into-> desktop
  34. Enter - open selected object
  35. Ctrl Enter - design selected object
  36. Del - drop object selected object
  37. Ctrl X/C/V - transfer (if pasted into another db.)/clone (if pasted into the same db) object
  38.   same functionality provides tree drag&drop functionality
  39.   
  40. 1.2 XLS like Table
  41. F1 - help
  42. F5 - refresh
  43. F2 - edit
  44. Ctrl A - select All
  45. Ctrl X/C/V - cut/copy/paste
  46. Alt F3/F3/Shift F3 find/find next/find prev  ( Ctrl F = Alt F3 )
  47. F4 - more...
  48.  
  49. 1.2.1 SQL Data Table (extend XLS like Table)
  50. * * *functions listed in popup menu
  51. a - Autofilter
  52. d - Design Table
  53. w - Edit WHERE
  54. u - Update Changes
  55. * * * unlisted functions
  56. F6 - selects line/s in which is located cursor
  57. Esc - close window
  58. Ctrl F12 - breaks loading of table data
  59. Ctrl + Open Data Table Window (from browser) - opens table as is (in case of custom looking tables (function Save Table Options))
  60.  
  61. 1.3. Query/Procedure editor
  62.   Alt q, r, p, l - switches between opened tabs (Query/Result/Parameters/pLan)
  63. 1.3.1 Editor
  64. F1 - online T-SQL help + database hyperlink browser
  65.  (if keyword under cursor:
  66.      T-SQL command -> help
  67.      table name (reference) -> open, design, where open, generate column list
  68.      procedure/trigger/view/rule/default name -> design/execute*
  69. Esc - write ahead
  70. Ctrl A - select all
  71. Ctrl Z/Y - undo/redo
  72. Alt F3/F3/Shift F3 - find, find next, find prev
  73. Tab/Shift Tab - indent/unindent selected lines
  74. F4 - next error
  75. Ctrl S - save
  76.  
  77. Ctrl F2 - toggle/remove bookmark
  78. F2/Shift F2 - goto next/previous bookmark
  79.  
  80. Ctrl D - find ( like in DevStudio )
  81. Ctrl E - execute (block if one selected, whole script else)
  82. Ctrl G - goto line
  83. Ctrl H - replace
  84. Ctrl F - view column list of table under caret (with Shift ling column list is generated - try)
  85.  
  86. F5/Alt F5 - run/stop debug
  87. F9 - set/remove breakpint
  88. Ctrl B - edit breakpoints
  89. F7 - run to cursor
  90. F8 - step into
  91. F11 - step over
  92.  
  93.  
  94. 1.3.2. Results
  95. F4 goto error (like in msdev)
  96. Ctrl A - select all
  97. Ctrl S - save...
  98. Ctrl C - copy
  99.  
  100. 1.4. Reports
  101. F5 - refresh
  102. Del - removes table from relational model/removes selected columns from report
  103.  
  104.  
  105. 2.  Popup Menus - a menu shown after right mouse click
  106. 2.1 Tree Browser 
  107.  containts in popup menu whole application functionality.
  108.  
  109. 2.2 List Of Usefull Functions
  110. 2.2.1. SQL Data Of Table
  111. Related Table - shows records of chosen related table , related to selected records (...hope it't clear)
  112. Field Chooser - option to specify subset of columns to be loaded as table.
  113. Expand Column - tables having 1->N relation with our table, may be expanded to see "values" instead of FK's. Expand Column 'colname'  on such FK column header will expand values into column.
  114. Save Table Options - saves table layout. Next time the table is open by current user,
  115. will be opened as is in time of save. Following options are saved:
  116.     - Sort Order
  117.     - Column Order  ( it is possible to change column order by dragging selected columns)
  118.     - Sizes of columns ( or "default size" which is set by double-click-ing on the divider line in table header)
  119.     - Autofilters
  120.     - Column Expansion ( see Expand Column )
  121.     - Column list ( in case of some columns were not loaded . see Field Chooser )
  122. Record Script - records all changes made in table into SQL script.
  123.  
  124. 2.2.2. Query Editor
  125. 2.2.2.1 Editor
  126. Replace - extensive replace
  127. Colors... - defines colors of lexemes
  128. Define Vocabulary - executes script in window to obtain results for custom lexeme set "User Defined". example : Select name from master..sysdatabases     select name from master..systypes
  129. 2.2.2.2. Results
  130. View In Table - views underlaying data of table in XLS like table (advantages : sort, find, save data into SQL table)
  131.  
  132. 2.2.2.3. Browser
  133.    Alt+text -> find object
  134.  
  135. 2.2.2.3.1. Data Tab
  136. Filter... - for filter just used objects / object types
  137. Script Data - scripts of data of table (including BLOB fields)
  138. Select Count(*) - prints number of table lines into info line
  139.  
  140. 2.2.2.3.2. Code Tab
  141. View Help - views first comment in procedure (may be used as procedure help (and/or) description) 
  142.  
  143. 2.2.2.4. Relational Model
  144. 2.2.2.4.1. Table In Relational Model
  145. View Table - open table designer for table
  146. Open Table - views data of table
  147. Add relation... - (just in downsized db.)
  148.  
  149. 2.2.2.4.2 Relations In Relational Model ( just in downsized database)
  150. Edit Relation
  151. Delete Relation
  152.  
  153. 2.2.2.4.3 All Other functions
  154. Add Note/Add Free Text Note - adds notes into relational model (theese are saved vitw view. see View/Save)
  155. Scale - scales relational model
  156. Select - select table(s) just for case saving into relational view (see View/Save)
  157. View - load/save/delete (often subset) view into relational model (maybe with notes)
  158.  
  159. 2.2.2.5. sysprocesses table
  160. Show Input Buffer - shows last commend executed by selected process
  161. Send Message To Owners - sends "net send" with specified text to owner(s) of selected process(es)
  162. Autorefresh... - starts autorefresh of window (table) with specified interval
  163.  
  164. 2.2.2.6. Report designer
  165. 2.2.2.6.1. Upper (Relational Model) part
  166. Add Table - containts list of related tables prepared to be opened
  167. Read Table Comments / Hide Table Comments - wiews / hides comments to columns of table
  168.  
  169. 2.2.2.6.2. Bottom Part
  170. Open Graph - open graph viewing selected columns (at least 1 must be any numeric datatype and at least 1 must be non numeric)
  171. Column Options - enables to set usefull options for selected column
  172. Show Cursor Script... - generates T-SQL cursor script for designed query
  173.  
  174. note: popup menu containts function "View Data In Table" while opening over table results
  175.  
  176.  
  177. 3. Usefull functionality (easy to miss..:) )
  178. cascade delete/update in trigger driven relations
  179. hyperhelp (F1) in query
  180. write ahead - 
  181.  
  182. 4. Command Line Options
  183. 4.1. Automatic Connection
  184. oledb connect:    [-Ooledb_provider] -Sserver_name0 [-Ddatabase_name0 -Uuser_name0 -Puser_password0 -T]
  185. dblib connect:    -Sserver_name [-Ddatabase_name -U1user_name -P1user_password -T]
  186.  
  187. 4.2. Load Functions
  188. -Qfile_name - opens the and loads the file specified by file_name
  189. -Lsaved_downsize  - loads the saved downsize of the current database (which has to be set in the -D option!) and run upsize
  190.  
  191. 4.3 Compare
  192. -Cddata_compare_settings_file_name.tse  - data comoare
  193. -CS - compare the structure between two databases
  194. -CP - compare procedures between two databases
  195. -CT - compare triggers between two databases
  196. -CF - compare script containing procedures with in-database procedures
  197.  
  198. 4.4. Transfer
  199. -? - help to command line options
  200. -CYsynchronize_settings_file_name.tse - synchronize
  201. -CIoffline_export_settings_file_name.tse - offline export
  202. -CCoffline_export_settings_file_name.tse - offline export to script
  203. -CJdirectory - offline import
  204. -debug - enables application debug features
  205.  
  206. 5. SQLing server options - options residing in table SQLing..options of managed server
  207. lines:
  208. Don't rollback (in trigger) in nested transaction - if opt_int<>0 then Referential integrity triggers does not containts rollback tran.
  209. Postupsize batch - opt_text=script to be executed after each upsize; opt_int=1
  210. Save downsizes - opt_text=directory where downsizes will be automatically saved before each upsize. opt_int=1
  211.  
  212. 6. Troubleshooting
  213. Q:Table With All Cells eq null it loaded instead of data.
  214. A:Under OLEDB is not possible load tables having more than one BLOB column. Use popupmenu/Field Chooser ... function to choose just nessesary fields.
  215.  
  216. Q: How can I see if all table data was loaded.
  217. A: numbers in info line means : Actually Read Number Of Lines/select count(*)
  218.  
  219. Q: What Options to select while creating Primary Key.
  220. A: Due to 2 types of supported relations, set "Primary Key" in "Index Type" field and check checkbox "Use As Primary Key ...", to avoid problems when changing relations (between trigger and constraint driven).
  221.  
  222. Q: How to print relational model ?
  223. A: Open the map window (first button in relational model toolbar). With left mouse button held down select area to be printed and release the button. In Shown popuop menu select Print.